import Ajax from '@/util/Ajax'
import apiConstant from "@/api/api-constant";

const Api = {
  getCityList (params) {
    return Ajax.post('api/city/list', params)
  },
  getMovieList (params) {
    return Ajax.post('api/movie/list', params)
  },
  movieHotChange (params) {
    return Ajax.post('api/movie/hotChange', params)
  },
  synchHotMovie (params) {
    return Ajax.post('api/synch/hot/movie', params)
  },
  synchFutureMovie (params) {
    return Ajax.post('api/synch/soon/movie', params)
  },
  updateMovieLevel (params) {
    return Ajax.post('api/movie/setLevel', params)
  },
  getCinemaList (params) {
    return Ajax.post('api/cinema/list', params)
  },
  getCinema (params) {
    return Ajax.post('api/cinema/get', params)
  },
  nlCinemaResponse (params) {
    return Ajax.post('/api/nl/cinemaList/response', params)
  },
  nlOpiResponse (params) {
    return Ajax.post('/api/nl/opiList/response', params)
  },
  nlBalance (params) {
    return Ajax.post('/api/nl/balance', params)
  },
  setCinemaUsechannel (params) {
    return Ajax.post('api/cinema/setUsechannel', params)
  },
  cinemaUpdateStatus (params) {
    return Ajax.post('api/cinema/setStatus', params)
  },
  setCinemaSpecialHallIds (params) {
    return Ajax.post('api/cinema/setSpecialHallIds', params)
  },
  cinemaUpdateChannel (params) {
    return Ajax.post('api/cinema/setChannel', params)
  },
  cinemaUpdateDiscount (params) {
    return Ajax.post('api/cinema/setDiscountRate', params)
  },
  cinemaUpdateFixedPrice (params) {
    return Ajax.post('api/cinema/setFixedPrice', params)
  },
  cinemaSetLine (params) {
    return Ajax.post('api/cinema/setLine', params)
  },
  updateCinemaTags (params) {
    return Ajax.post('api/cinema/setTags', params)
  },
  cinemaSynch (params) {
    return Ajax.post('api/cinema/synch/cinema', params)
  },
  cinemaSynchMaoYan (params) {
    return Ajax.post('synch/maoyan/all/cinema', params)
  },
  getCinemaGplineList (params) {
    return Ajax.post('api/cinema/gpline/list', params)
  },
  getCinemaGpline (params) {
    return Ajax.post('api/cinema/gpline/get', params)
  },
  deleteCinemaGpline (params) {
    return Ajax.post('api/cinema/gpline/delete', params)
  },
  saveCinemaGpline (params) {
    return Ajax.post('api/cinema/gpline/save', params)
  },
  setUpAndDown (params) {
    return Ajax.post('api/cinema/gpline/setUpAndDown', params)
  },
  getMovieChannelList (params) {
    return Ajax.post('api/movie/channel/list', params)
  },
  getMovieChannel (params) {
    return Ajax.post('api/movie/channel/get', params)
  },
  setMovieChannelRelatedId (params) {
    return Ajax.post('api/movie/channel/setRelatedId', params)
  },
  movieChannelSynch (params) {
    return Ajax.post('api/movie/channel/synch', params)
  },
  cinemaChannelSynch (params) {
    return Ajax.post('api/cinema/channel/synch', params)
  },
  getCinemaGplineHallList (params) {
    return Ajax.post('api/cinema/gpline/hall/list', params)
  },
  saveCinemaGplineHall (params) {
    return Ajax.post('api/cinema/gpline/hall/save', params)
  },
  updateCinemaGplineHall (params) {
    return Ajax.post('api/cinema/gpline/hall/update', params)
  },
  deleteCinemaGplineHall (params) {
    return Ajax.post('api/cinema/gpline/hall/delete', params)
  },
  getCinemaGplineHall (params) {
    return Ajax.post('api/cinema/gpline/hall/get', params)
  },
  getCinemaOpenRuleList (params) {
    return Ajax.post('api/cinema/openRule/list', params)
  },
  saveCinemaOpenRule (params) {
    return Ajax.post('api/cinema/openRule/save', params)
  },
  setCinemaOpenRuleStatus (params) {
    return Ajax.post('api/cinema/openRule/setStatus', params)
  },
  setCinemaOpenRuleSortNum (params) {
    return Ajax.post('api/cinema/openRule/setSortNum', params)
  },
  getCinemaOpenRule (params) {
    return Ajax.post('api/cinema/openRule/get', params)
  },
  getCinemaHallList (params) {
    return Ajax.post('api/cinema/hall/rate/list', params)
  },
  saveCinemaHall (params) {
    return Ajax.post('api/cinema/hall/rate/save', params)
  },
  getCinemaHall (params) {
    return Ajax.post('api/cinema/hall/rate/get', params)
  },
  deleteCinemaHall (params) {
    return Ajax.post('api/cinema/hall/rate/delete', params)
  },
  getMovieChannelSortList (params) {
    return Ajax.post('/api/movie/channel/sort/list', params)
  },
  saveMovieChannelSort (params) {
    return Ajax.post('/api/movie/channel/sort/save', params)
  },
  getBmhBatchList (params) {
    return Ajax.post('/api/cinema/bmh/batch/list', params)
  },
  getBmhBatch (params) {
    return Ajax.post('/api/cinema/bmh/batch/get', params)
  },
  setBmhBatchStatus (params) {
    return Ajax.post('/api/cinema/bmh/batch/setStatus', params)
  },
  saveBmhBatch (params) {
    return Ajax.post('/api/cinema/bmh/batch/save', params)
  },
  getBmhBatchCouponList (params) {
    return Ajax.post('api/cinema/bmh/coupon/list', params)
  },
  saveBmhBatchCoupon (params) {
    return Ajax.post('api/cinema/bmh/coupon/save', params)
  },
  saveBatchBmhBatchCoupon (params) {
    return Ajax.post('api/cinema/bmh/coupon/saveBatch', params)
  },
  getBmhBatchCoupon (params) {
    return Ajax.post('api/cinema/bmh/coupon/get', params)
  },
  setBmhBatchCouponStatus (params) {
    return Ajax.post('api/cinema/bmh/coupon/setStatus', params)
  },
  getBmhRelateMovieOrder (params) {
    return Ajax.post('api/cinema/bmh/coupon/getMovieOrder', params)
  },
  getBmhOrderList (params) {
    return Ajax.post('api/order/bmh/list', params)
  },
  getBmhOrder (params) {
    return Ajax.post('api/order/bmh/get', params)
  },
  getCinemaGplineLevelList (params) {
    return Ajax.post('api/movie/level/rate/list', params, )
  },
  saveCinemaGplineLevel (params) {
    return Ajax.post('api/movie/level/rate/save', params, {headers:{'Content-Type':'application/json'}})
  },
  getOrderNote (params) {
    return Ajax.post('api/order/movie/getOrderNote', params)
  },
  saveOrderNote (params) {
    return Ajax.post('api/order/movie/saveOrderNote', params)
  },
  getSpecialHallList (params) {
    return Ajax.post('api/cinema/specail/hall/list', params)
  },
  saveSpecialHall (params) {
    return Ajax.post('api/cinema/specail/hall/save', params)
  },
  getSpecialHall (params) {
    return Ajax.post('api/cinema/specail/hall/get', params)
  },
  updateSpecialHallStatus (params) {
    return Ajax.post('api/cinema/specail/hall/setStatus', params)
  },
}
export default Api
